package com.hshh.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hshh.dao.CompanyDAO;
import com.hshh.domain.CompanyVO;

@Repository
public class CompanyDAOImpl extends CommonDAOImpl implements CompanyDAO {

	@Override
	public CompanyVO selectCompany(HashMap<String, Object> paramMap) {
		return (CompanyVO) getSqlSession().selectOne("CommonDAO.selectCompany", paramMap);
	}

	@Override
	public int insertCompany(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return getSqlSession().insert("CompanySql.insertCompany", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Map<String, Object>> selectExistCompany(
			Map<String, Object> param) {
		// TODO Auto-generated method stub
		return getSqlSession().selectList("CompanySql.selectExistCompany", param);
	}
}